package com.web.common.enums;

public enum BaseStatus {
    SUCCESS("000000", "成功"),

    /*常见错误使用1xxxxx表示*/
    FCE_AUTH_FAIL("100001", "身份验证失败"),

    FCE_SELECT_FAIL("100002", "查询失败"),

    FCE_INSERT_FAIL("100003", "新增失败"),

    FCE_UPDATE_FAIL("100004", "修改失败"),

    FCE_DELETE_FAIL("100005", "删除失败"),

    PRICE_NOT_EXIST("100006","价源不存在"),

    ACCOUNTING_NOT_EXIST("100007","账务数据不存在"),

    FCE_ACCUMULATED_FAIL("100008", "新增累总交易失败"),

    POSITION_DATA_NOT_EXIST("100009","拆盘数据不存在"),

    CUSTOMER_NOT_EXIST("100010","客户不存在"),

    ACCOUNT_ALREADY_EXIST("100010","账户已存在"),

    ACCOUNT_DATA_EXCEPTION("100011","该客户无货币账号"),

    PENDING_LIST_DATA_NOT_EXIST("100012","审批数据不存在"),

    CUSTOMER_ALREADY_EXIST("100013","客户已存在"),

    MAKER_APPROVER_THE_SAME("100014","申请人和审批人不能是同一人"),

    PENDING__DATA_EXCEPTION("100015","审批数据异常"),

    CUSTOMER__DATA_EXCEPTION("100016","客户数据异常"),

    INSERT_ACCOUNT_FAILED("100017","新增账户失败"),

    SYSTEM_PARAM_ALREADY_EXIST("100018","系统参数已存在"),

    SYSTEM_PARAM_DATA_EXCEPTION("100019","系统参数数据异常"),

    SYSTEM_PARAM_DATA_NOT_EXIST("100020","系统参数不存在"),

    EXPORT__DATA_EXCEPTION("100021","导出数据异常"),

    QUALIFICATION_DATA_NOT_EXIST("100022","客户资质数据不存在"),

    QUALIFICATION_DATA_NOT_IMPORT("100023","无客户资质数据导入"),

    QUALIFICATION_DATA_EXIST("100024","客户资质数据已存在"),

    INSERT_QUALIFICATION_FAILED("100025","新增客户资质数据异常"),

    QUALIFICATION__DATA_EXCEPTION("100026","客户资质数据异常"),

    QUALIFICATION__DATA_NOT_EXIST("100027","无客户资质数据存在,无法导出"),

    INVALID_CURRENCY_PAIR("100028","无效货币对"),

    INVALID_BOOK_RATE("100029","预定汇率超过合理范围"),

    INVALID_BOOK_RATE_ACCESS("100030","该客户无法创建预定汇率交易"),

    INVALID_SETTLEMENT_DATE("100031","结算日期超过最大日期"),

    CONTRACT_DATA_NOT_EXIST("100032","合约数据不存在"),

    NO_RATE_DATA_UPDATE("100033","无最新价源更新"),

    INVALID_BOOK_RATE_QUALIFICATION("100034","该客户无创建预定汇率交易资质"),

    SELL_AMOUNT_NOT_ENOUGH("100035","扣账账户额度不够"),

    INVALID_OPTION_QUALIFICATION("100036","该客户无创建期权交易资质"),

    INVALID_OPTION_ACCESS("100037","该客户无法创建期权交易"),

    INVALID_EXPIRE_DATE("100038","交割日期超过参数范围"),

    OPTION_INSERT_FAILED("100039", "新增期权交易失败"),

    OPTION__DATA_NOT_EXIST("100040", "期权交易不存在"),

    OPTION_REJECT_FAILED("100041", "拒绝期权交易失败"),

    OPTION_CALL_OR_PUT_NO_FAILED("100042", "扣账/入账失败"),

    OPTION_CONFIRM_FAILED("100043", "确认期权交易失败"),

    OPTION_SETTLED_FAILED("100044", "结算期权交易失败"),





    /*成功的信息码使用2xxxxx表示*/
    FCE_SELECT_SUCCESS("200002", "查询成功"),

    FCE_INSERT_SUCCESS("200003", "新增请求成功,等待审批"),

    FCE_UPDATE_SUCCESS("200004", "修改请求成功,等待审批"),

    FCE_DELETE_SUCCESS("200005", "删除请求成功,等待审批"),

    FCE_CANCEL_SUCCESS("200006","询价交易取消成功"),

    PENDING_REJECT_SUCCESS("200007","拒绝审批成功"),

    PENDING_APPROVE_SUCCESS("200008","审批通过"),

    QUOTE_PRICE_SUCCESS("200009","询价交易成功"),

    DOWN_PDF_SUCCESS("200010","导出数据成功,请前往D盘查看"),

    UPDATE_RATE_SUCCESS("200011","最新价源更新成功"),

    OPTION_INSERT_SUCCESS("200012", "新增期权交易成功"),

    OPTION_REJECT_SUCCESS("200013", "拒绝期权交易成功"),

    OPTION_CONFIRM_SUCCESS("200014", "确认期权交易成功"),

    OPTION_SETTLED_SUCCESS("200015", "结算期权交易成功"),


    /*系统级别的错误使用9xxxxx表示*/
    FCE_SYSTEM_ERR("900005","系统错误");


    private String code;

    private String desc;

    BaseStatus(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
